package com.joysuch.wwyt.config.mybatis;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * MyBatis plus配置类
 * Created by jingwk on 2021/03/23.
 */
@Configuration
@MapperScan({"com.joysuch.wwyt.*.mapper"})
public class MybatisPlusConfig {

    /**
     * pagination interceptor
     *
     * @return pagination interceptor
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }

}
